home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _C107E78FF138476B8076168DA08EC490 < prev    next >
Encoding:
Text File  |  2004-01-06  |  4.7 KB  |  169 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2.  
  3. --#Script:ReloadScript("scripts/materials/mat_rock.lua") --for copying/pasting into the console!!!
  4.     
  5.  
  6. Materials["mat_rock"] = {
  7.     type="rock",
  8. -------------------------------------
  9.     PhysicsSounds=PhysicsSoundsTable.Hard,
  10. -------------------------------------    
  11.     bullet_drop_single = CommonEffects.common_bullet_drop_single_ashphalt,
  12.     bullet_drop_rapid = CommonEffects.common_bullet_drop_rapid_ashphalt,
  13. -------------------------------------    
  14.  
  15.     projectile_hit = CommonEffects.common_projectile_hit,
  16.     mortar_hit = CommonEffects.common_mortar_hit,
  17.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  18.     flashgrenade_hit = CommonEffects.common_flashgrenade_hit,
  19.     grenade_hit = CommonEffects.common_grenade_hit,
  20.  
  21.     bullet_hit = {
  22.         sounds = {
  23.             {"Sounds/bullethits/brock1.wav",SOUND_UNSCALABLE,200,5,60},
  24.             {"Sounds/bullethits/brock2.wav",SOUND_UNSCALABLE,200,5,60},
  25.             {"Sounds/bullethits/brock3.wav",SOUND_UNSCALABLE,200,5,60},
  26.             {"Sounds/bullethits/brock4.wav",SOUND_UNSCALABLE,200,5,60},
  27.             },
  28.         decal = { 
  29.             texture = System:LoadTexture("Textures/Decal/rock.dds"),
  30.             scale = 0.05,
  31.             random_scale = 100,
  32.             random_rotation = 359,
  33.             },
  34.         
  35.         particleEffects = {
  36.             name = "bullet.hit_rock.a",
  37.             },
  38.             
  39.         },
  40.     pancor_bullet_hit = {
  41.         sounds = {
  42.             {"Sounds/bullethits/brock1.wav",SOUND_UNSCALABLE,200,5,60},
  43.             {"Sounds/bullethits/brock2.wav",SOUND_UNSCALABLE,200,5,60},
  44.             {"Sounds/bullethits/brock3.wav",SOUND_UNSCALABLE,200,5,60},
  45.             {"Sounds/bullethits/brock4.wav",SOUND_UNSCALABLE,200,5,60},
  46.             },
  47.         decal = { 
  48.             texture = System:LoadTexture("Textures/Decal/rock.dds"),
  49.             scale = 0.05,
  50.             random_scale = 100,
  51.             random_rotation = 359,
  52.             },
  53.         
  54.         particleEffects = {
  55.             name = "bullet.hit_rock_pancor.a",
  56.             },
  57.             
  58.         },
  59.  
  60.  
  61.  
  62. -------------------------------------
  63.     player_walk = CommonEffects.player_conc_walk,
  64.     player_run = CommonEffects.player_conc_run,
  65.     player_crouch = CommonEffects.player_conc_crouch,
  66.     player_prone = CommonEffects.player_conc_prone,
  67.     player_walk_inwater = CommonEffects.player_walk_inwater,
  68.     
  69.     player_drop = {
  70.         sounds = {
  71.             {"sounds/player/bodyfalls/bodyfallrock1.wav",SOUND_UNSCALABLE,210,10,150},
  72.             {"sounds/player/bodyfalls/bodyfallrock2.wav",SOUND_UNSCALABLE,210,10,150},
  73.         },
  74. --        decal = { 
  75. --            texture = System:LoadTexture("Textures/Decal/Default.tga"),
  76. --            scale = 0.1,
  77. --        },
  78.     },
  79.     melee_slash = {
  80.         sounds = {
  81.             {"sounds/weapons/machete/macheteconc1.wav",SOUND_UNSCALABLE,185,5,30},
  82.             {"sounds/weapons/machete/macheteconc2.wav",SOUND_UNSCALABLE,185,5,30},
  83.             {"sounds/weapons/machete/macheteconc3.wav",SOUND_UNSCALABLE,185,5,30},
  84.         },
  85.         particles = 
  86.             {
  87.                 { --HitSparksTrail
  88.                 focus = 0.0,
  89.                 color = {1,1,1},
  90.                 speed = 2.0,
  91.                 count = 5,
  92.                 size = 0.010, 
  93.                 size_speed=0,
  94.                 gravity={x=0,y=0,z=-5},
  95.                 lifetime=0.1,
  96.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  97.                 tail_length = 0.3,
  98.                 frames=0,
  99.                 blend_type = 2
  100.                 },
  101.                 { --HitStonesDark
  102.                 focus = 1,
  103.                 speed = 2,
  104.                 start_color = {1,1,1},
  105.                 end_color = {1,1,1}, 
  106.                 count = 8, --default 3
  107.                 size = 0.01, 
  108.                 size_speed=0,
  109.                 gravity = {x = 0.0, y = 0.0, z = -3},
  110.                 rotation = {x = 0.0, y = 0.0, z = 15},
  111.                 lifetime=0.75,
  112.                 frames=1,
  113.                 blend_type = 0,
  114.                 bouncyness = 0.5,
  115.                 tid = System:LoadTexture("textures\\Sprites\\stone1.dds"),
  116.                 },
  117.                 { --HitStonesLight
  118.                 focus = 1,
  119.                 speed = 2,
  120.                 start_color = {1,1,1},
  121.                 end_color = {1,1,1}, 
  122.                 count = 6, --default 2
  123.                 size = 0.01, 
  124.                 size_speed=0,
  125.                 gravity = {x = 0.0, y = 0.0, z = -3},
  126.                 rotation = {x = 0.0, y = 0.0, z = 50},
  127.                 lifetime=0.750,
  128.                 frames=1,
  129.                 blend_type = 0,
  130.                 bouncyness = 0.5,
  131.                 tid = System:LoadTexture("textures\\Sprites\\stone2.dds"),
  132.                 },                
  133.             {--hitsmoke
  134.                  focus = 0,
  135.                 start_color = {0.89,0.69,0.4},
  136.                 end_color = {1,1,1},
  137.                 speed = 0.1,
  138.                 count = 5, --default 3
  139.                 size = 0.01, 
  140.                 size_speed=0.01,
  141.                 gravity = {x = 0.0, y = 0.0, z = 0.1},
  142.                 rotation = {x = 0.0, y = 0.0, z = 2},
  143.                 lifetime=1.25,
  144.                 tid = System:LoadTexture("textures/clouda2.dds"),
  145.                 frames=0,
  146.                 blend_type = 0,
  147.             },    
  148.         },
  149.     },
  150. -------------------------------------
  151.     player_land = {
  152.         sounds = {
  153.             --sound , volume , {min, max}
  154.             --NOTE volume and min max are optional
  155.              {"sounds/doors/dooropen.wav",SOUND_UNSCALABLE,150,4,20},
  156.              {"sounds/doors/dooropen.wav",SOUND_UNSCALABLE,150,4,20},
  157.             
  158.         },
  159.     },
  160.     gameplay_physic = {
  161.         piercing_resistence = 15,
  162.         friction = 0.7,
  163.         bouncyness= 0.2, -- default 0
  164.     },
  165.     ---------------------------------------------
  166.     AI = {
  167.         fImpactRadius = 5,
  168.     },            
  169. }